package com.yj;

import com.yj.spring.charpter01.ClassPathXmlApplicationContext;
import com.yj.spring.charpter01.MyBean;

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
        context.refresh();

        MyBean myBean = (MyBean) context.getBean("myBean");
        System.out.println(myBean);

        List<String> names = new ArrayList<>();
        names.indexOf("a");
    }
}